//
//  SuperUIScrollView.h
//  极致荟
//
//  Created by hetao on 14-7-11.
//  Copyright (c) 2014年 mac. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol SuperScorllViewDelegate;

@interface SuperUIScrollView : UIScrollView<UIScrollViewDelegate>
{
    UITapGestureRecognizer *tap;//点击手势
    UILabel *tslable;//数据加载/刷新 提示
    UIActivityIndicatorView *hud;//HUD提示
    BOOL hudheide;//是否隐藏刷新状态
}

//是否启用刷新加载功能
- (void)hudTypeEnd;

//隐藏刷新状态提示
- (void)heiderHud;

///是否开启点击手势，用于键盘回收
- (void)TapGestureEnend:(BOOL) end;
@property(nonatomic,assign) id<SuperScorllViewDelegate> superDelegate;

@end


/*
 *SuperUIScrollView代理协议
 */
@protocol SuperScorllViewDelegate <NSObject>

@optional
///当偏移量超出顶部范围时刷新数据
- (void)topOffesRefreshData:(SuperUIScrollView *)scorllview;

///当偏移量超出底部范围时加载数据
- (void)bottmOffesAddData:(SuperUIScrollView *)scollview;
@end